home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / QuickDraw GX / QuickDraw GX Info / QuickDraw GX Interfaces / Interfaces & Libraries / interfaces / qd library.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-30  |  1.3 KB  |  47 lines  |  [TEXT/MPS ]

  1. /* graphics routines:
  2.     quickdraw library interfaces
  3.     by Cary Clark, Georgiann Delaney, Michael Fairman, Dave Good, Robert Johnson, Keith McGreggor, Oliver Steele, David Van Brink, Chris Yerga
  4.     Copyright 1987 - 1993 Apple Computer, Inc.  All rights reserved.    */
  5.  
  6. #pragma once
  7. #ifndef qdLibraryIncludes
  8.     #define qdLibraryIncludes
  9.  
  10. #ifndef graphicsTypesIncludes
  11.     #include "graphics types.h"
  12. #endif
  13.  
  14. #ifndef __QUICKDRAW__
  15.     #include <Quickdraw.h>
  16. #endif
  17.  
  18. #ifdef __cplusplus
  19.     extern "C" {
  20.     #endif
  21.     
  22.     /* geometry conversions */
  23.     gxPoint *ShortPointToFixed(const Point *, gxPoint *);
  24.     Point *FixedPointToShort(const gxPoint *, Point *);
  25.     gxRectangle *ShortRectToFixed(const Rect *, gxRectangle *);
  26.     Rect *FixedRectToShort(const gxRectangle *, Rect *);
  27.  
  28.     /* gxColor conversions */
  29.     gxColorSet CTableToColorSet(const CTabHandle);
  30.     CTabHandle ColorSetToCTable(const gxColorSet);
  31.  
  32.     /* pixmap/gxBitmap conversions */
  33.     gxBitmap *ConvertFromQDBitmap(const BitMap *, gxBitmap *);
  34.     BitMap *ConvertToQDBitmap(const gxBitmap *, BitMap *);
  35.     gxShape BitMapToShape(const BitMap *);
  36.     gxShape PixMapToShape(const PixMapHandle);
  37.     gxShape GetPixMapShape(short resourceID);
  38.     gxShape CICNToMask(CIconHandle iconH);
  39.     gxShape CICNToShape(CIconHandle iconH);
  40.     gxShape GetCICNMask(long resourceID);
  41.     gxShape GetCICNShape(long resourceID);
  42.  
  43.     #ifdef __cplusplus
  44.     }
  45.     #endif
  46. #endif
  47.